home *** CD-ROM | disk | FTP | other *** search
- OPT PREPROCESS
-
- MODULE 'feelin','libraries/feelin'
-
- PROC main()
- DEF c,w,id
-
- IF feelinbase := OpenLibrary('feelin.library',FV_VERSION)
- c := ClientObject,
- FA_Pen_Shine, 'c:BED2F0',
- FA_Pen_Fill, 'c:82B4F0',
- FA_Pen_Dark, 'c:003CAA',
- FA_Pen_Text, 'c:FFFFFF',
- FA_Pen_Highlight, 'c:2878C8',
-
- Child, w := WindowObject,
- FA_Back, '2:Feelin:Images/StripBlue.iff',
- FA_Window_Title, 'Feelin', FA_Window_ScreenTitle, 'Feelin : Some buttons',
-
- Child, VGroup,
- Child, VGroup, GroupFrame, FA_Frame_Title, 'Poids différents...',
- Child, HGroup,
- Child, SimpleButton('_Lotan'),
- Child, SimpleButton('_is'),
- Child, SimpleButton('my L_ord'),
- End,
-
- Child, BarTitle('Youpi'),
-
- Child, HGroup, FA_Group_RelSizing,TRUE,
- Child, SimpleButton('Lotan'),
- Child, SimpleButton('is'),
- Child, SimpleButton('my Lord'),
- End,
-
- Child, Bar,
-
- Child, HGroup,
- Child, SimpleButton('Loooooooooootan'),
- Child, SimpleButton('is'),
- Child, SimpleButton('my Lord'),
- End,
- End,
-
- Child, BarTitle('Inputs'),
- Child, BarTitle('Very long line name, that is very long indeed'),
-
- Child, HGroup, GroupFrame, FA_Frame_Title,'Inputs, very long long so long line',
- Child, button('I_mmediate',FV_InputMode_Immediate),
- Child, button('_Toggle',FV_InputMode_Toggle),
- Child, button('Release',FV_InputMode_Release),
- End,
- End,
- End,
- End
-
- IF c
- F_DoA(w,FM_Notify,[FA_Window_CloseRequest,TRUE,FV_Notify_Client,2,FM_Client_ReturnID,FV_Client_Quit])
- F_Set(w,FA_Window_Open,TRUE)
-
- F_DoA(c,FM_Client_Run,NIL)
-
- F_DisposeObj(c)
- ENDIF
-
- CloseLibrary(feelinbase)
- ELSE
- WriteF('Unable to open feelin.library\n')
- ENDIF
- ENDPROC
-
- PROC button(name,input)
- RETURN TextObject,
- FA_Text,name,
- ButtonFrame,
- ButtonBack,
- FA_FixedHeight,TRUE,
- FA_Text_PreParse,'`c',
- FA_InputMode,input, End
- ENDPROC
-